﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    enum Foods
    {
        盖浇鸡鸡,
        香菇滑鸡饭,
        青椒仔鸡饭,
        宫保鸡丁饭,
        酸辣鸡杂饭

    }
    class CookRobot:Robot
    {
        public  Foods food { get; set; }
        public CookRobot()
        {

        }
        public CookRobot(string name, Foods food)
            : base(name)
        {
            this.food = food;
        }
        public override void Working()
        {
            Console.WriteLine("机器人名字：{0},菜名：{1}", base.Name, food);
        }
    }
    class DeliveryRobot : Robot
    {
        public double Hours { get; set; }

        public DeliveryRobot(string name, double hours)
            : base(name)
        {
            this.Hours = hours;
        }

        public override void Working()
        {
            Console.WriteLine("机器人名字：{0}，工作时长{1}小时", base.Name, this.Hours);
        }
    }
}
